package com.demo.mybatis_plus.util;

import java.text.SimpleDateFormat;
import java.util.Date;

public class DatetimeUtils {
    public static String format(String pattern){
        SimpleDateFormat df = new SimpleDateFormat(pattern);
        return df.format(new Date());
    }
}
